package com.gouqi.lpl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gouqi.lpl.domain.Hero;
import com.gouqi.lpl.service.HeroService;
import com.gouqi.lpl.mapper.HeroMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HeroServiceImpl extends ServiceImpl<HeroMapper, Hero>
    implements HeroService {

    @Resource
    private HeroMapper heroMapper;

    @Override
    public List<Hero> getHero() {
        LambdaQueryWrapper<Hero> queryWrapper = new LambdaQueryWrapper<>();
        List<Hero> heroList = heroMapper.selectList(queryWrapper);
        return heroList;
    }
}




